<%@ taglib prefix="s" uri="/struts-tags" %>

template listArticles.jsp

<s:action name="Lire_Articles" executeResult="false" namespace="/" var="listArticles" />

<div class="posts">
  <s:iterator value="%{#listArticles.listArticles}" status="ligne">
    <div class="post post-<s:property value="idArticle" />">
      <h2 class="post-title">
        <a href="lireArticle?id=<s:property value="idArticle" />"><s:property value="titre" /></a>
      </h2>
      <div class="post-content">
        <s:property value="contenu" />
      </div>
      <div class="post-meta">
        <s:property value="datePublished" />
      </div>
    </div>
  </s:iterator>
</div><!-- /.posts -->
